import java.util.ArrayList;
import java.util.List;


public class Tree {
	
	private Tree father;
	private List<Object> children = new ArrayList<Object>();
	
	public void addLeftSon(Object son) {
		children.add(0, son);
	}
	
	public Tree removeRightSon() {
		return (Tree)children.remove(children.size() - 1);
	}
	
	public Tree getFather() {
		return father;
	}

	public void setFather(Tree father) {
		this.father = father;
	}
	
}
